import axios from '@/libs/api.request'

// 查询所有用户信息
export const getPageList = (data) => {
  return axios.request({
    url: '/api/ac/cscforxq/CommunityWorkeService/getPageList',
    data: data,
    method: 'post'
  })
}

// 保存用户表单信息
export const add = (data) => {
  return axios.request({
    url: '/api/ac/cscforxq/CommunityWorkeService/add',
    data: data,
    method: 'post'
  })
}

// 更新人员信息
export const update = (data) => {
  return axios.request({
    url: '/api/ac/cscforxq/CommunityWorkeService/update',
    data: data,
    method: 'post'
  })
}

// 删除人员信息
export const deleteData = (data) => {
  return axios.request({
    url: '/api/ac/cscforxq/CommunityWorkeService/delete',
    data: data,
    method: 'post'
  })
}
